package net.ericaro.neojavagen.expressions;

/**
 * <b>PrimaryMethodInvocation</b> ::= <{@link net .ericaro .neojavagen .expressions .Primary Primary}> "." <
 * {@link net .ericaro .neojavagen .expressions .MethodInvocationBody MethodInvocationBody}>
 * 
 * @author eric@ericaro.net
 */
public class PrimaryMethodInvocation extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.expressions.MethodInvocation {
	private net.ericaro.neojavagen.expressions.MethodInvocationBody methodInvocationBody;

	private net.ericaro.neojavagen.expressions.Primary primary;

	public PrimaryMethodInvocation(net.ericaro.neojavagen.expressions.Primary primary, net.ericaro.neojavagen.expressions.MethodInvocationBody methodInvocationBody) {
		super();
		this.primary = primary;
		this.methodInvocationBody = methodInvocationBody;
	}

	public net.ericaro.neojavagen.expressions.MethodInvocationBody getMethodInvocationBody() {
		return methodInvocationBody;
	}

	public net.ericaro.neojavagen.expressions.Primary getPrimary() {
		return primary;
	}

	public void setMethodInvocationBody(net.ericaro.neojavagen.expressions.MethodInvocationBody methodInvocationBody) {
		this.methodInvocationBody = methodInvocationBody;
	}

	public void setPrimary(net.ericaro.neojavagen.expressions.Primary primary) {
		this.primary = primary;
	}

	@Override
	public java.lang.String toString() {
		return print(primary, ".", methodInvocationBody);
	}
}
